public class Card {
    private String suit;//花色
    private int rank;//数字

    //创建构造方法
    public Card(String suit, int rank) {
        this.suit = suit;
        this.rank = rank;
    }

    @Override
    //重写toString方法
    public String toString() {
        /*return "Card{" +
                "suit='" + suit + '\'' +
                ", rank=" + rank +
                '}';*/
        return "{"+suit + rank+"}";
    }
}
